package com.heima.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> implements Serializable {
    private Integer pageIndex;
    private Integer pageSize;
    private Integer totalPage;
    private long totalCount; //总记录数
    private List<T> currentPageRecords; //当前页数据集合
}

